"""
2.验证码处理.py
    1. 关闭验证码
    2. 万能码   8888
    3. ai 识别  :  爬虫
2.文件上传操作:
    f = driver.find_element(By.NAME ,"file")
    sleep(2)
    f.send_keys("D:\gitck\python15\uiautotest15\day3\__init__.py")
    sleep(2)
    driver.find_element(By.XPATH,"/html/body/div/div[2]/div[1]/form/button").click()

"""
from selenium import  webdriver
from time import sleep

from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.maximize_window()
driver.get("http://192.168.1.25:8080/pinter/file/page/upload")
sleep(2)
f = driver.find_element(By.NAME ,"file")
sleep(2)
f.send_keys("D:\\gitck\\python15\\uiautotest15\\day3\\__init__.py")
sleep(2)
driver.find_element(By.XPATH,"/html/body/div/div[2]/div[1]/form/button").click()
sleep(3)
driver.quit()